package do

import (
	"admin-system-go/model"
	"database/sql"
)

type User struct {
	model.Model
	Username string `gorm:"unique"`
	Password string
	Uid      uint `gorm:"unique"`
	Name     sql.NullString
	Mobile   sql.NullString
	Email    sql.NullString
	IdCard   sql.NullString
	State    int8 `gorm:"default:0"` //-1 锁定状态 0 初始化状态 1 正常未登录 2 正常登录状态
}
